package com.stefanbertos.tapestry.components;

import org.apache.tapestry5.annotations.Parameter;

/**
 * BaseDialog class represents the common dialog input parameters, some of them
 * are required some not and then they are defaulted.
 * 
 * @author stefan
 * 
 */
public abstract class AbstractDialog {
    /**
     * flag to set the dialog modal, in the front.
     */
    @Parameter(required = false, value = "true")
    private boolean modal;

    /**
     * dialog title to set.
     */
    @Parameter(required = true)
    private String title;

    /**
     * height of the dialog.
     */
    @Parameter(required = false, value = "200")
    private int height;

    /**
     * width of the dialog.
     */
    @Parameter(required = false, value = "300")
    private int width;

    /**
     * @return title
     */
    public final String getTitle() {
        return this.title;
    }

    /**
     * @param pTitle
     *            to set
     */
    public final void setTitle(final String pTitle) {
        this.title = pTitle;
    }
}
